//
//  RadioPlayTool.h
//  Car
//
//  Created by 何晓文 on 15/9/17.
//  Copyright (c) 2015年 朱鸿儒. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <AVFoundation/AVFoundation.h>
#import "RadioListModel.h"
@interface RadioPlayTool : NSObject
@property (nonatomic,strong) AVPlayer *player;

@property (nonatomic,strong) AVPlayerItem *playerItem;

@property (nonatomic,strong) NSString *radioUrl;

@property (nonatomic,assign) BOOL isPlaying;

@property (nonatomic,assign) BOOL readyToPlay;

@property (nonatomic,strong) NSMutableArray *radioList;

@property (nonatomic,strong) RadioListModel *radioModel;
//解析数据
- (void)initData;
//单例方法
+ (RadioPlayTool *)shareRadioTool;
//播放方法
- (void)playWithRadioURl:(NSString *)url;
//开始播放
- (void)startPlayRadio;
//暂停播放
- (void)radioPause;
//
- (void)compareTime;

@end
